package com.educate.book.rpc.api;

import com.educate.book.model.bo.ChildBookBO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

public interface ChildBookService {

    void create(ChildBookBO bo);

    void delete(ChildBookBO bo);

    void delete(String childBookId);

    ChildBookBO detail(String childBookId);

    ChildBookBO detail(ChildBookBO bo);

    void update(ChildBookBO bo);

    Page<ChildBookBO> query(ChildBookBO bo, PageRequest pageRequest);

    List<ChildBookBO> list(ChildBookBO bo);
}
